<?php echo "<?php \$form=\$this->beginWidget('bootstrap.widgets.TbActiveForm',array(
	'id'=>'".$this->class2id($this->modelClass)."-form',
        'type'=>'vertical',
	'enableAjaxValidation'=>false,
        'htmlOptions' => array('class'=>'well form-vertical'),
)); ?>\n"; ?>

        <div class="alert alert-info">
            <span class="required">*</span> <?php echo Yii::t('system', 'Обязательные поля для заполнения.'); ?>
        </div>

	<?php echo "<?php echo \$form->errorSummary(\$model); ?>\n"; ?>

<?php
    echo "<?php echo CHtml::hiddenField('event', '0'); ?>\n";
foreach($this->tableSchema->columns as $column)
{
    if($column->autoIncrement)
            continue;
?>
    <?php echo "<?php echo ".$this->generateActiveRow($this->modelClass,$column)."; ?>\n"; ?>

<?php
}
?>
    <div class="form-actions">
            <?php echo "<?php \$this->widget('bootstrap.widgets.TbButton', array(
                    'buttonType'=>'submit',
                    'type'=>'primary',
                    'label'=>\$model->isNewRecord ? 'Create' : 'Save',
            )); ?>\n"; ?>
    </div>

<?php echo "<?php \$this->endWidget(); ?>\n"; ?>